<form action="<?php echo Fun::curcul(); ?> " method="post" class="aform">
    <h2 class="formdesc">添加目录</h2>
    <?php echo $actinfo;?>
    <div class="line">
        <label class="labe">目录名称</label>
        <input class="inpt1" type="text" name="cname">
        <span class="must">*</span>
    </div>
    <div class="line">
        <label class="labe">模板类型</label>
        <select name="ctpl" class="inpt1">
            <?php
            foreach ($table->select() as $val) {
                 printf('<option value="%s">%s</option>',$val['id'],$val['table_desc']);
            }
            ?>

        </select>
    </div>
    <div class="line">
        <label class="labe">列表文件</label>
        <input class="inpt1" type="text" name="lfile">
    </div>
    <div class="line">
        <label class="labe">列表模板</label>
        <input class="inpt1" type="text" name="ltpl">
    </div>
    <div class="line">
        <label class="labe">文件模板</label>
        <input class="inpt1" type="text" name="ftpl">
    </div>
    <div class="line">
        <label class="labe">命名规则</label>
        <input class="inpt1" type="text" name="nrule">
    </div>
    <div class="line">
        <label class="labe">分页</label>
        <input class="inpt1" type="text" name="pnum" value="20">
    </div>
    <div class="line">
        <label class="labe">文件上传路径</label>
        <input class="inpt1" type="text" name="fpath" value="/upload/">
    </div>

    <div class="line subline"><input class="sub" type="submit" value="建立目录"></div>
</form>
